|
|
> > Did this in effect mean that you couldn't open a filehandle outside a
> macro
> > and then write to the filehandle inside the macro?
>
> Yes.
Well... I may be mistaken, but I believe this works:
#macro dostuff()
#write(MYFILE, "hi")
#end
#fopen MYFILE "myfile.txt" write
dostuff()
#fclose MYFILE
You just can't pass the actual file handle to the macro, so you have to be
able to pre-write the macro knowing what the filehandle will be named. A
significant restriction, yes. Not horrible though.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|